package global;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

/**
 * @date 2025/9/26
 */
@ControllerAdvice
public class GlobalException {

    @ExceptionHandler
    public ModelAndView exceptionHandler(Exception e){
        return new ModelAndView("globalException","msg","服务器内部异常");
    }

}
